package web.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import web.entity.User;
import web.mapper.UserDao;
import web.service.UserService;

import java.util.HashMap;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;


    @Override
    public List<User> getAllUser() {
        return userDao.getAllUser();
    }

    @Override
    public User selectOne(String account) {
        return userDao.selectOne(account);
    }

    @Override
    public HashMap getDetail(String account) {
        return userDao.getDetail(account);
    }


}
